//    Copyright (C) Kherty.  All rights reserved.
using System.Diagnostics.Contracts;

namespace OpenLS.Spreadsheet.Parsing
{
    class SingleQuoteIdentifier : IdentifierBase
    {
        public SingleQuoteIdentifier( string s): base (s)
        {
            Contract.Requires(s != null);
        }

        public override string ToString()
        {
            string s = Value.Replace("'", "''");
            return "'" + s + "'";
        }
    }
}